package com.zhihuichongcheng.application.ui.coordination.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.zhihuichongcheng.application.R;
import com.zhihuichongcheng.application.base.BaseActivity;

/**
 * Created by 3water on 2016/10/29.
 */

public class CoordinationTypeActivity extends BaseActivity implements View.OnClickListener{
    private RelativeLayout mRlJd,mRlGovernment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_coordination_type);
        initView();
        initData();

    }

    private void initView()
    {
        setStatusBarDarkMode();
        setTitle("公司制度");
        setImRight(R.drawable.ic_search, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                Intent intent = new Intent(mContext,CoordinationSearchActivity.class);
//                startActivity(intent);
                startActivity(CoordinationSearchActivity.class);
            }
        });
        mRlGovernment = (RelativeLayout)findViewById(R.id.tv_government);
        mRlJd = (RelativeLayout)findViewById(R.id.tv_jb);
        mRlGovernment.setOnClickListener(this);
        mRlJd.setOnClickListener(this);
    }

    private void initData()
    {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId())
        {
            case R.id.tv_government:
                Bundle bundle = new Bundle();
                bundle.putString("title","集团、政府");
                startActivity(CoordinationListActivity.class,bundle);
                break;
            case R.id.tv_jb:
                bundle = new Bundle();
                bundle.putString("title","崇诚");
                startActivity(CoordinationListActivity.class,bundle);
                break;
            default:
                break;
        }
    }
}
